package com.thunisoft;

import java.net.URI;
import java.net.URISyntaxException;
import java.time.LocalDateTime;
import java.time.ZoneOffset;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.alibaba.fastjson.JSONObject;

/**
 * @title Test.java
 * @package com.thunisoft
 * @projectName spring.boot
 * @author yzj 
 * @date 2019年7月23日 下午4:32:58
 */
public class Test {

	
    public  List<Integer> sort(List<Integer> list) {
        Integer[] aList = list.toArray(new Integer[list.size()]);
        for (int i = 0; i < aList.length - 1; i++) {
            for (int j = 0; j < aList.length - 1 - j; j++) {
                if (aList[j] > aList[j + 1]) {
                    Integer temp = aList[j + 1];
                    aList[j + 1] = aList[j];
                    aList[j] = temp;
                }
            }
        }
        return Arrays.asList(aList);
    }
    
    public  static URI getIP(URI uri) {
        URI effectiveURI = null;
        try {
            effectiveURI = new URI(uri.getScheme(), uri.getUserInfo(), uri.getHost(), uri.getPort(), null, null, null);
        } catch (Throwable var4) {
            effectiveURI = null;
        }
        return effectiveURI;
    }
	/**
	 * @param args
	 * @throws URISyntaxException 
	 */
	public static void main(String[] args) throws URISyntaxException {

		String []arr=null;
		List<String>list=Arrays.asList(arr);
		System.out.println(list);
		
	}
	
	

}
